package com.sunch.utils;

import com.sunch.pojo.User;

public class UserHolder {
    private static final ThreadLocal<User> userHolder = new ThreadLocal<User>();
    public static void saveUser(User user) {userHolder.set(user);}
    public static User getUser() {return userHolder.get();}
    public static void removeUser() {userHolder.remove();}

}
